package Work;

public class Cat extends Animal implements AnimalBehavior{
    public Cat(String name) {
        super(name);
    }
    @Override
    public void makeSound() {
        System.out.println(name+"：喵喵叫");
    }
    @Override
    public void behave() {
        System.out.println("做猫叫");
    }
}
